#!/bin/bash


rm -fr problem4_output.txt
rm -fr problem4_performance_output.txt

echo "problem4:"
echo "#cores	time" >>problem4_performance_output.txt
for nodes in `seq 19`
do
	echo " testing with `expr $nodes + 1 ` nodes"
	echo " testing with `expr $nodes + 1 ` nodes" >>problem4_output.txt
	mpirun n0-$nodes -ssi rpi usysv ./ql-round-web -n3 -l web_test.txt 2>>problem4_performance_output.txt >problem4_output.txt
done
